// Unitgear.sqf
// Equips Units with Weapons and IV_Items. Called after main item add funtion is defined

if (iscop) then 
{
	['SpawnObj_RoadCone', 2] call INV_SetItemAmount;
	//['SpeedCam', 1] call INV_SetItemAmount;
	['schluesselbund', 1] call INV_SetItemAmount;
	['handy', 1] call INV_SetItemAmount;
	INV_LizenzOwner = INV_LizenzOwner + ["basic_police"];
	//["INV_LizenzOwner", INV_LizenzOwner] spawn ClientSaveVar;
} 
else 
{
	['schluesselbund', 1] call INV_SetItemAmount;
	['handy', 1] call INV_SetItemAmount;
};

if (isundercover) then 
{
	['schluesselbund', 1] call INV_SetItemAmount;
	['handy', 1] call INV_SetItemAmount;
};

if (isborderpatrol) then 
{
	['SpawnObj_RoadBarrier_long', 2] call INV_SetItemAmount;
};

// Add Swat License at start
if (isswat) then 
{
	INV_LizenzOwner = INV_LizenzOwner + ["swat_training"];
	//["INV_LizenzOwner", INV_LizenzOwner] spawn ClientSaveVar;
};

lostWeapons              = [];
lostMagazines            = [];

// StartGear for Cops
CopStartGear_Mags = 
[
"8Rnd_127x51_Shell_TR", 
"8Rnd_127x51_Shell_TR",
"8Rnd_127x51_Shell_TR",
"ACE_8Rnd_12Ga_Buck00",
"ACE_8Rnd_12Ga_Buck00",
"8Rnd_127x51_tazerxrep",
"8Rnd_127x51_tazerxrep",
"8Rnd_127x51_tazerxrep",
"ACE_17Rnd_9x19_G17", 
"ACE_17Rnd_9x19_G17", 
"ACE_17Rnd_9x19_G17", 
"ACE_17Rnd_9x19_G17" 
];

CopStartGear_Weap = 
[
"Binocular", 
"Mossberg_M590", 
"ACE_Glock17"
];

// StartGear for SWAT Units
SWATStartGear_Mags = 
[
"8Rnd_127x51_Shell_TR", 
"8Rnd_127x51_Shell_TR",
"ACE_8Rnd_12Ga_Slug", 
"ACE_8Rnd_12Ga_Slug",  
"ACE_8Rnd_12Ga_Buck00",
"ACE_8Rnd_12Ga_Buck00",
"ACE_8Rnd_12Ga_Buck00",
"8Rnd_127x51_tazerxrep",
"8Rnd_127x51_tazerxrep",
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21"
];

SWATStartGear_Weap = 
[
"Binocular", 
"ACE_M1014", 
"arpg_glock21"
];

// Start gear for Undercover Units
UndercoverStartMags      = 
[
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21", 
"arpg_13Rnd_45acp_G21"
];

UndercoverStartWeap      = 
[
"Binocular", 
"arpg_glock21"
];

BodyguardStartMags 	 = [];
BodyguardStartWeap 	 = [];

if (not(iscop)) then {showGPS false;};